]> dgit.raspbian.org Git - gnome-shell.git/commit
st/theme-node: Free properties array on dispose rather than finalize
authorJonas Dreßler <verdre@v0yd.nl>
Thu, 24 Jul 2025 17:47:58 +0000 (19:47 +0200)
committerMarge Bot <marge-bot@gnome.org>
Sat, 30 Aug 2025 21:40:30 +0000 (21:40 +0000)
commit07d6cf017eedfa02059848b33a5412576ac023c6
treeb96f5908e8cf616610f6bbacd4a3c4380114b6c4
parent9ed77ef13e809da12567a5d6725ac2525581f28b
st/theme-node: Free properties array on dispose rather than finalize

We're going to use `g_object_run_dispose()` on StThemeNode with the next
commit in order to manually clear the properties array and a few other
things when the StThemeContext changes.

That's because after theme context changes, the CSS properties will no
longer be valid, and accessing them will cause crashes. Even if St behaves
nicely and throws out all theme nodes on theme context changes, there
might still be users holding references to nodes, so we want to ensure that
the old nodes are harmless after theme context changes.

Part-of: <https://gitlab.gnome.org/GNOME/gnome-shell/-/merge_requests/3809>
src/st/st-theme-node.c